package com.example.club.test

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

class TestViewModel: ViewModel() {
    val testLiveData: MutableLiveData<String> = MutableLiveData()


    fun getData(){
        for (i in 0..100){
            testLiveData.value = "新的数据"
        }
        for (i in 0..100){
            testLiveData.postValue("新的数据2")
        }


    }
}